#!/usr/bin/env python3
# coding=utf-8

import rospy
from std_msgs.msg import String

def callback(msg):
    rospy.loginfo(msg.data)

rospy.init_node("subscriber_py_node")
sub = rospy.Subscriber("/pysensor", String, callback, queue_size=10)
rospy.spin()
